import request from "@/utils/request.js";

// 获取回访记录列表
export const orderMessageList = (data) => {
	return request.get('/system/order-message/page', data)
}
// 新建回访
export const createOrderMessage = (data) => {
	return request.post('/system/order-message/create', data)
}

// 获取施工详情
export const getEngineeringDetail = (data) => {
	return request.get('/system/engineering/get', data)
}

// 获取设计信息列表
export const getDesignInfoList = (data) => {
	return request.get('/system/order-designer/get-design-info', data)
}


// 获取施工节点
export const getEngineeringStageList = (data) => {
	return request.get('/system/engineering-stage/page', data)
}
// 获取施工节点-施工班组
export const getEngineeringTeamUsers = (data) => {
	return request.get('/system/engineering-team-users/page', data)
}
// 施工列表详情-施工节点-确认完成
export const engineeringStageConfirmComplete = (data) => {
  return request.post('/system/engineering-stage/confirm-complete', data);
}
// 更新施工节点时间
export const updateEngineeringStage = (data) => {
	return request.put('/system/engineering-stage/update', data)
}
// 更新施工节点施工班组
export const updateTeamEngineeringStage = (data) => {
	return request.post('/system/engineering-stage/update-team', data)
}
// 施工节点-合同延期
export const engineeringContractExtensionApply = (data) => {
  return request.post('/system/engineering/contract-extension-apply', data);
}
// 施工节点-阶段延期
export const engineeringStageExtensionApply = (data) => {
  return request.post('/system/engineering-stage/stage-extension-apply', data);
}


// 获取验收单
export const getInspectList = (data) => {
	return request.get('/system/inspect/page', data)
}
// 新建验收单
export const createInspect = (data) => {
	return request.post('/system/inspect/create', data)
}
// 更新验收单
export const updateInspect = (data) => {
	return request.put('/system/inspect/update', data)
}
// 施工列表详情-提交验收单
export const engineeringSubmitInspect = (data) => {
  return request.post('/system/inspect/submit-inspect', data);
}
// 施工列表详情-退回验收单
export const engineeringRejectInspect = (data) => {
  return request.post('/system/inspect/reject-inspect', data);
}

// 施工列表详情-确认验收单
export const engineeringConfirmInspect = (data) => {
  return request.post('/system/inspect/confirm-inspect', data);
}


// 获取设计信息
export const getOrderFileList = (data) => {
	return request.get('/system/order-file/page', data)
}


// 获取延期单信息
export const getYanqiFileList = (data) => {
	return request.get('/system/contract-yanqi-file/page', data)
}
// 施工列表详情-施工图片审核
export const engineeringStagePictureExamine = (data) => {
  return request.post('/system/engineering-stage/engineering-stage-picture-examine', data);
}
// 施工列表详情--施工图片重新上传
export const engineeringStageReUploadPicture = (data) => {
  return request.post('/system/engineering-stage/re-upload-engineering-stage-picture', data);
}